package com.zc.blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zc.blog.mapper.TagArticleMapper;
import com.zc.blog.mapper.TagMapper;
import com.zc.blog.model.Tag;
import com.zc.blog.service.ITagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户Service实现类
 */
@Service("TagService")
public class ITagServiceImpl extends ServiceImpl<TagMapper, Tag> implements ITagService {

    @Autowired
    private TagMapper tagMapper;


    @Override
    public Tag findById(Integer id) {
        return tagMapper.findById(id);
    }

    @Override
    public List<Tag> findTagsByArticleId(Integer articleId) {
        return tagMapper.findTagsByArticleId(articleId);
    }

    @Override
    public List<Tag> findShow() {
        return tagMapper.findShow();
    }
}
